<?php
/**
 * 特采数据回货数量更新
 * @author sundongdong
 */
class Interface_Model_SpecialPurchase extends Model_Base {
	/**
	 * 接受pms回传的回货数量，保存至数据库
	 */
	public function saveReturnGoods($data) {
		$wdb = $this->db('write_db');
		$wdb->beginTransaction();
		try {
			$this->insertBatch($wdb, 'p_special_purchase_return', $data);
			$wdb->commit();
		}catch (Exception $e) {
			$wdb->rollBack();
			throw $e;
		}
	}
}